package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 b_shopcart
 * 
 * @author ruoyi
 * @date 2023-12-11
 */
public class BShopcart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 借阅id */
    private Long cartId;

    private  String username;
    private String bookname;

    /** 图书id */
    @Excel(name = "图书id")
    private Long bookId;

    /** 借阅时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sentime;

    /** 借阅状态(0,归还，1) */
    @Excel(name = "借阅状态(0,归还，1)")
    private Long status;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 违规罚款 */
    @Excel(name = "违规罚款")
    private Long forfeit;

    /** 违规日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "违规日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deftime;

    public void setCartId(Long cartId) 
    {
        this.cartId = cartId;
    }

    public Long getCartId() 
    {
        return cartId;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setSentime(Date sentime) 
    {
        this.sentime = sentime;
    }

    public Date getSentime() 
    {
        return sentime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setForfeit(Long forfeit) 
    {
        this.forfeit = forfeit;
    }

    public Long getForfeit() 
    {
        return forfeit;
    }
    public void setDeftime(Date deftime) 
    {
        this.deftime = deftime;
    }

    public Date getDeftime() 
    {
        return deftime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("bookId", getBookId())
            .append("sentime", getSentime())
            .append("status", getStatus())
            .append("userId", getUserId())
            .append("forfeit", getForfeit())
            .append("deftime", getDeftime())
            .toString();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }
}
